-- GENERATED SPELL FOR [Eclipsion Dragonhawk] --


function spell0_20502(pUnit, Event) --@Fire Breath,Self--
pUnit:FullCastSpellOnTarget(37985,pUnit)
pUnit:RegisterEvent('Sorts_20502', 3000, 1)
end

function Sorts_20502(pUnit, Event)
local choix_sorts_20502 = math.random(0, 0)
if choix_sorts_20502 == 0 then
pUnit:RegisterEvent('spell0_20502', 1, 1)
end
end

function mob20502_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20502', math.random(1500, 3000), 1)
end

function mob20502_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20502_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20502_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20502, 1, 'mob20502_Action')
RegisterUnitEvent(20502, 2, 'mob20502_Leave')
RegisterUnitEvent(20502, 3, 'mob20502_Kill')
RegisterUnitEvent(20502, 4, 'mob20502_Die')
